<!-- Content Header (Page header) -->
<link rel="stylesheet" href="AdminLTE/dist/css/dataTables.bootstrap.css">
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">

<section class="content-header">
    <h1>
        用户信息
    </h1>
</section>
<!-- Main content -->
<section class="content">

    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-body">

                    <div class="box-header">
                        <button class="btn btn-info" id="addUserBut">&nbsp;&nbsp;新&nbsp;&nbsp;增&nbsp;&nbsp;</button>
                    </div>

                    <table id="pageMessage" class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th class="col-xs-2">操作</th>
                            <th class="col-xs-1">账号</th>
                            <th class="col-xs-2">昵称</th>
                            <th class="col-xs-2">联系电话</th>
                            <th class="col-xs-1">创建人</th>
                            <th class="col-xs-2">创建时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                        <tfoot>
                        </tfoot>
                    </table>
                </div><!-- /.box-body -->
            </div><!-- /.box -->

        </div><!-- /.col -->
    </div><!-- /.row -->
</section><!-- /.content -->



<!-- 新增用户-->
<div id="userMessage" class="modal fade" role="dialog" aria-labelledby="gridSystemModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="gridSystemModalLabel">编辑用户信息</h4>
            </div>
            <div class="modal-body" >
                <form novalidate="novalidate" id="userForm">
                    <div class="form-group has-feedback">
                        <input type="hidden" value="" id="_id" name="_id">
                        <input type="text" name="loginName" check-type="required" required-message="登录账号" id="loginName" class="form-control" placeholder="登录账号">
                        <span class="glyphicon form-control-feedback"></span>
                        <small class="help-block" data-bv-validator="notEmpty" data-bv-for="tenant_name" data-bv-result="NOT_VALIDATED" style="display: none;">登录账号</small></div>
                    <div class="form-group has-feedback">
                        <input type="text" name="nickName" id="nickName" class="form-control" placeholder="昵称" check-type="required" required-message="昵称" >
                        <span class="glyphicon  form-control-feedback"></span>
                        <small class="help-block" data-bv-validator="notEmpty" data-bv-for="password" data-bv-result="NOT_VALIDATED" style="display: none;">昵称</small></div>
                    <div class="form-group has-feedback">
                        <input type="text" name="phone" id="phone" class="form-control" placeholder="手机号" required-message="手机号" >
                        <span class="glyphicon form-control-feedback"></span>
                        <small class="help-block" data-bv-validator="notEmpty" data-bv-for="password" data-bv-result="NOT_VALIDATED" style="display: none;">手机号</small></div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="userSave">保存</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<script src="AdminLTE/dist/js/jquery.dataTables.min.js"></script>
<script src="AdminLTE/dist/js/dataTables.bootstrap.min.js"></script>
<script src="js/userList.js"></script>
